package com.animal.entity;

public class Member {
    private String nickname;    // 昵称
    private String age;         // 年龄
    private String phone;       // 手机
    private String money;       // 余额
    private Pet pet;            // 购买的宠物

    public Member() {
    }

    public Member(String nickname, String age, String phone, String money, Pet pet) {
        this.nickname = nickname;
        this.age = age;
        this.phone = phone;
        this.money = money;
        this.pet = pet;
    }

    /**
     * 获取
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * 设置
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * 获取
     * @return age
     */
    public String getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(String age) {
        this.age = age;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return money
     */
    public String getMoney() {
        return money;
    }

    /**
     * 设置
     * @param money
     */
    public void setMoney(String money) {
        this.money = money;
    }

    /**
     * 获取
     * @return pet
     */
    public Pet getPet() {
        return pet;
    }

    /**
     * 设置
     * @param pet
     */
    public void setPet(Pet pet) {
        this.pet = pet;
    }

    public String toString() {
        return "Member{nickname = " + nickname + ", age = " + age + ", phone = " + phone + ", money = " + money + ", pet = " + pet + "}";
    }
}

